
export const routes = [
  {
    path: '/',
    name: '/',
    meta: {
      title: '图书借阅',
      requiresAuth: false
    },
    redirect: '/layout'
  },
  {
    path: '/layout',
    meta: {
      title: '图书借阅首页',
      requiresAuth: true
    },
    component: () => import('@/views/layout/index.vue'),
    
  },
  {
    path: '/login',
    name: 'loginPage',
    meta: {
      title: '图书借阅登录',
      requiresAuth: false
    },
    component: () => import('@/views/login/index.vue')
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404Page',
    meta: {
      title: '404 No Found',
      requiresAuth: false
    },
    component: () => import('@/views/404/index.vue')
  }
]
